home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
kernel
/
method.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-16
|
2KB
|
88 lines
/* Copyright (c) 1993-1996 Algorithms Corporation */
/* All rights reserved. */
/* This file automatically generated by dpp - do not edit */
#define DPP_STRATEGY 2
#define DPP_FASTWIDE 0
#define CLASS Method_c
#define ivType Method_iv_t
#include "generics.h"
object Method_c;
#include "method.iv"
#line 23 "method.d"
imeth char * Method_im_gName(object self)
{ Method_iv_t *iv = GetIVs(Method, self);
return iv->name;
}
imeth int Method_im_gTrace(object self, int mode)
{ Method_iv_t *iv = GetIVs(Method, self);
int pmode = iv->trace;
iv->trace = mode;
return pmode;
}
imeth ofun Method_im_gFunction(object self)
{ Method_iv_t *iv = GetIVs(Method, self);
return iv->meth;
}
imeth ofun Method_im_gChangeFunction(object self, ofun fun)
{ Method_iv_t *iv = GetIVs(Method, self);
ofun org;
org = iv->meth;
iv->meth = fun;
return org;
}
imeth objrtn Method_im_gCopy(object self)
{
return gShouldNotImplement(self, "gCopy/gDeepCopy");
}
objrtn Method_initialize(void)
{
static int done = 0;
if (done)
return Method_c;
done = 1;
iMethodFor(Method, gName, Method_im_gName);
iMethodFor(Method, gTrace, Method_im_gTrace);
iMethodFor(Method, gFunction, Method_im_gFunction);
iMethodFor(Method, gChangeFunction, Method_im_gChangeFunction);
iMethodFor(Method, gCopy, Method_im_gCopy);
iMethodFor(Method, gDeepCopy, Method_im_gCopy);
return Method_c;
}
#if 0
cmeth objrtn Method_cm_gNewMethod(object self, char *n, object c, object gen, ofun methf, ofun methf2){}
#endif